package com.atguigu.spzx.user;

import com.atguigu.spzx.common.anno.EnableSpzxUserInfo;
import com.atguigu.spzx.common.config.SpzxAuthWhiteUrls;
import com.atguigu.spzx.common.interceptor.SpzxLoginAuthInterceptor;
import com.atguigu.spzx.common.interceptor.SpzxWebMvcConfigurer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

@SpringBootApplication(exclude = {
        SpzxWebMvcConfigurer.class,
        SpzxAuthWhiteUrls.class,
        SpzxLoginAuthInterceptor.class

})
//@EnableCaching //启用自动缓存管理
@EnableSpzxUserInfo //启用登录拦截器 可以获取登录信息透传
//其他包下也有接口，为了避免MapperScan扫描到非Mapper的接口，必须指定扫描的包到mapper
@MapperScan(basePackages = "com.atguigu.spzx.*.mapper")
public class SpzxUserApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpzxUserApplication.class,args);
    }
}
